/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;

/**
 *
 * @author Silvia
 */
import javax.faces.bean.ManagedBean;
import javax.enterprise.context.RequestScoped;
import model.Control;
import model.Event;
import model.VaccineControl;

/**
 *
 * @author Silvia
 */
@ManagedBean
@RequestScoped
public class newVaccineControlBean {

    private Integer idAnimal;
    private String dose;
    private String controlComment;
    
    private Control newControl;
    private Event newEvent;
    private VaccineControl newVaccineControl;

    public Control getNewControl() {
        return newControl;
    }

    public void setNewControl(Control newControl) {
        this.newControl.setControlComment(controlComment);
    }

    public Event getNewEvent() {
        return newEvent;
    }

    public void setNewEvent(Event newEvent) {
        this.newEvent.setAnimal(idAnimal);
    }

    public VaccineControl getNewVaccineControl() {
        return newVaccineControl;
    }

    public void setNewVaccineControl(VaccineControl newVaccineControl) {
        this.newVaccineControl.setDose(dose);
    }

    public String getControlComment() {
        return controlComment;
    }

    public void setControlComment(String controlComment) {
        this.controlComment = controlComment;
    }

    public Integer getDose() {
        return dose;
    }

    public void setDose(Integer dose) {
        this.dose = dose;
    }

    public Integer getIdAnimal() {
        return idAnimal;
    }

    public void setIdAnimal(Integer idAnimal) {
        this.idAnimal = idAnimal;
    }

}
